<template>
  <div>
    <div>
      <router-view></router-view>
    </div>

    <van-tabbar v-model="active" route v-show="$route.meta.showtab">
      <van-tabbar-item name="home" icon="home-o" to="/home"
        >首页</van-tabbar-item
      >
      <van-tabbar-item name="search" icon="chat-o" to="/question"
        >问答
      </van-tabbar-item>
      <van-tabbar-item name="friends" icon="video-o" to="/movie"
        >视频</van-tabbar-item
      >
      <van-tabbar-item name="setting" icon="user-o" to="/my"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      active: ''
    }
  }
}
</script>

<style></style>
